<?php
/**
 * @link http://cn2.php.net/manual/en/migration54.incompatible.php
 * @version $Id: 4_call_time_pass_by_ref.php 211 2012-03-02 10:56:14Z horseluke@126.com $
 */

/*
Call-time pass by reference has been removed.

PHP 5.3:
Deprecated: Call-time pass-by-reference has been deprecated; If you would like t
o pass it by reference, modify the declaration of 4_call_time_pass_by_ref().  If y
ou would like to enable call-time pass-by-reference, you can set allow_call_time
_pass_reference to true in your INI file in \php_5_4\call_time_pa
ss_by_ref.php on line 24
5

PHP 5.4:
Fatal error: Call-time pass-by-reference has been removed; If you would like to
pass argument by reference, modify the declaration of 4_call_time_pass_by_ref(). i
n \php_5_4\4_call_time_pass_by_ref.php on line 25

*/
error_reporting(E_ALL);

function call_time_pass_by_ref($k){
	$k = 5;
}

$call_string = 2;
call_time_pass_by_ref(&$call_string);
echo $call_string;